package com.xiaoli.goodsserver.api;

import com.xiaoli.goods.api.IGoodsClient;
import com.xiaoli.goodsserver.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GoodsAPI implements IGoodsClient {

    @Autowired
    private IGoodsService goodsService;

    @Override
    public void updateStock(Long id, Integer changeStock) {
        goodsService.updateStock(id, changeStock);
    }
}
